package com.xiang.mall.platform.ac.controller

import com.xiang.mall.platform.uc.client.UserInfoClient
import com.xiang.mall.platform.uc.model.dto.UserInfoDto
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

/**
 * @author xiangliyou
 * @email xiangliyou1814@mail.yneusoft.com
 * @date 2019-03-13 14:41
 *
 */
@RestController
class TestController {

    @Autowired
    private lateinit var client: UserInfoClient

    @RequestMapping("user")
    fun testUserInfo(): UserInfoDto {
        return client.findUserByUsername("abc")
    }

}